/* @(#)GSMarketInfoQryVO.java
 * 
 *  Project:GS
 *  
 *  Modify  Information:
 *  ===============================================
 *   Author          Date            Description
 *  -------------- ---------------  ---------------
 *  Jenny  Li      2006-5-26          新增
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 *
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * @author JennyLi
 *
 */
public class GSMarketInfoQryVO implements GSBaseBean{
    
    public String title;
    
    public String content;
    
    public String providerId;
    
    public String publishDateStr;
    
    public String publishDateEnd;
    
    //for query title
    public String providerName;
    
    public String createDate;
    
    public String publishDate;
    
    public String fileName;
    
    public Object process(ResultSet aRs) throws SQLException{
        GSMarketInfoQryVO tVO = new GSMarketInfoQryVO();
        tVO.title = aRs.getString("GS_INFO_TITLE");
        tVO.content = aRs.getString("GS_INFO_CONTENT")==null?"":aRs.getString("GS_INFO_CONTENT").trim();
        tVO.providerId = aRs.getString("GS_PROVIDER_ID");
        tVO.providerName = aRs.getString("GS_PROVIDER_SHORTNAME");
        tVO.publishDate = aRs.getString("GS_PUBLISH_DATE");
        tVO.fileName = aRs.getString("GS_FILE_NAME") == null? "":aRs.getString("GS_FILE_NAME");
        tVO.createDate = aRs.getString("GS_CREATE_DATE").trim();
        return tVO;
    }
}
